<template>
  <div class="cell-paiming">
    <div class="cell-paiming-main">
      <div class="cell-paiming-title">
        <span class="title">上月小区高发排名</span>
        <span class="time">2018年7月</span>
      </div>
      <div class="cell-paiming-list">
        <ul>
          <li v-for="(item,index) in cellPaimingData" :key="index">
            <span class="name">
              <i :class="'BG'+index">{{index+1}}</i><em>{{item.cellPaimingName}}</em>
            </span>
            <!-- <span class="line"></span> -->
            <span class="total">{{item.cellPaimingCount}}</span>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      cellPaimingData: [
        {
          cellPaimingId: '01',
          cellPaimingName: '天山一村',
          cellPaimingCount: 28
        },
        {
          cellPaimingId: '02',
          cellPaimingName: '仙霞花园',
          cellPaimingCount: 25
        },
        {
          cellPaimingId: '03',
          cellPaimingName: '四季晶园',
          cellPaimingCount: 23
        },
        {
          cellPaimingId: '04',
          cellPaimingName: '西郊紫荆花园',
          cellPaimingCount: 19
        },
        {
          cellPaimingId: '05',
          cellPaimingName: '桃园四村',
          cellPaimingCount: 17
        }
      ]
    }
  },
  mounted () {
  },
  methods: {},
  computed: {},
  watch: {}
}
</script>
<style lang="less">
  .cell-paiming {
    width: 100%;
    background: rgba(43, 54, 72, 0.95);
    border-radius: 4px;
    margin-bottom: 10px;
  }

  .cell-paiming-main {
    padding: 20px;
    box-sizing: border-box;
  }

  .cell-paiming-title {
    height: 30px;
    position: relative;
    span.title {
      font-size: 12px;
      color: #ffffff;
      line-height: 20px;
    }

    span.time {
      font-style: normal;
      position: absolute;
      right: 0;
      line-height: 20px;
      font-size: 14px;
      text-align: right;
      font-size: 12px;
      color: #ffffff;
      letter-spacing: 0.4px;
    }
  }

  .cell-paiming-list {
    padding: 6px 0;
    li {
      font-size: 12px;
      color: #9facc3;
      letter-spacing: 0.4px;
      line-height: 25px;
      background: url("/images/icons/line.png") repeat-x center center;
      letter-spacing: -5px;
      font-size: 0;
      span.name,
      span.line,
      span.total {
        font-size: 12px;
        letter-spacing: normal;
        vertical-align: top;
        display: inline-block;
      }
      span.name {
        background: rgba(43, 54, 72, 0.95);
        i {
          width: 15px;
          height: 15px;
          line-height: 17px;
          text-align: center;
          background: #4a90e2;
          border-radius: 2px;
          display: block;
          float: left;
          font-size: 12px;
          letter-spacing: 0.4px;
          color: rgba(0, 0, 0, 0.5);
          font-style: normal;
          margin-right: 10px;
          margin-top: 4px;
          &.BG0 {
            background: #f5a623;
          }
          &.BG1 {
            background: #50e3c2;
          }
          &.BG2 {
            background: #b8e986;
          }
        }
        em {
          font-style: normal;
          padding-right: 10px;
          // min-width: 90px;
          display: block;
          float: left;
          line-height: 25px;
        }
      }
      // span.line{
      //   background-color: rgba(255,255,255,.1);
      //   vertical-align: middle;
      //   line-height: 10px;
      //   width: 40%;
      //   height: 1px;
      // }
      span.total {
        background: rgba(43, 54, 72, 0.95);
        padding-left: 10px;
        float: right;
      }

    }
  }
</style>
